package com.gzucm.Scholarship.entity;

import com.gzucm.Scholarship.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

@Data
@Entity
@ApiModel
@NoArgsConstructor
@Table(name = "base_score")
public class BaseScore extends BaseEntity {

    @ApiModelProperty(value = "学年")
    @Column(name = "year", nullable = false)
    private String year;

    @ApiModelProperty(value = "学生学号")
    @Column(name = "student", nullable = false)
    private String student;

    @ApiModelProperty(value = "德育基础分数")
    @Column(name = "score_dy", nullable = false)
    private BigDecimal scoreDy;

    @ApiModelProperty(value = "智育基础分数")
    @Column(name = "score_zy", nullable = false)
    private BigDecimal scoreZy;

    @ApiModelProperty(value = "文体基础分数")
    @Column(name = "score_wt", nullable = false)
    private BigDecimal scoreWt;
}
